package com.ruoyi.system.domain.standard_relevant;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 标准相关操作对象 standard
 *
 * @author ruoyi
 * @date 2024-07-06
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class Standard extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @Excel(name = "id")
    private Long id;

    /** 标准号 */
    @Excel(name = "标准号")
    private String standardCode;

    /** 标准名称 */
    @Excel(name = "标准名称")
    private String standardName;

    @Excel(name = "标准中文名称")
    private String standardCname;

    /** 中国标准分类号 */
    @Excel(name = "中国标准分类号")
    private String classificationCode;

    /** 制定组织 */
    @Excel(name = "制定组织")
    private String organization;

    /** 创建者 */
    @Excel(name = "创建者")
    private String createUser;

    /** 修改者 */
    @Excel(name = "修改者")
    private String modifyUser;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifyTime;

    private Long userId;

    private Long deptId;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("standardCode", getStandardCode())
            .append("standardName", getStandardName())
            .append("standardCname", getStandardCname())
            .append("classificationCode", getClassificationCode())
            .append("organization", getOrganization())
            .append("remark", getRemark())
            .append("createUser", getCreateUser())
            .append("createTime", getCreateTime())
            .append("modifyUser", getModifyUser())
            .append("modifyTime", getModifyTime())
            .toString();
    }
}
